const itheima = require('./itheima-tools-myself/index');

// 格式化时间功能
const dtStr = itheima.dateFormat(new Date());
console.log(dtStr);

// 转义 html 字符测试
const htmlStr = '<h1 title="abc">这是标签</h1>'
const str = itheima.htmlEscape(htmlStr);
console.log(str);

console.log('还原后：'+ itheima.htmlUnEscape(str));